<template>
  <div id="app">
    <!-- 一级路由挂载点 -->
    <!-- <router-view /> -->
    <!--
     根据$route.meta.isKeepAlive如果是true对应路由组件会被加载渲染到
     <keep-alive>组件下
     -->
    <keep-alive>
      <router-view v-if="$route.meta.isKeepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.isKeepAlive"></router-view>
  </div>
</template>
